/*
 * created by Farzon Lotfi
 * HW3 
 * Quad.java
 *
 */
import java.awt.Graphics;
import java.awt.Color;

public class Quad {

private int xLoc, yLoc;

private int radius;

private Color quadRGB;


public int getX0(){
 return xLoc;
}

public int getY0(){
 return yLoc;
}

public int getX1()
{
	return xLoc + radius;
}

	public int getY1(){
	 return yLoc + radius;
	}

// thus function draws the circle
public void draw(Graphics g) {
	g.setColor(quadRGB); 
	g.drawRect(xLoc, yLoc, radius, radius);
}


// this is the constructor 
public Quad(int xLoc, int yLoc, int radius, Color quadRGB) {
 this.xLoc =xLoc;
 this.yLoc =yLoc;
 this.radius = radius;
 this.quadRGB =quadRGB;
}  
}